package com.kk.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;

@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@DynamicUpdate
public class Role extends BaseEntity{

    private String name;//角色名称
    private String roledesc;//角色描述


    public Role(){
    }
    public Role(String name){
        this.name = name;
    }
}
